Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework pool tests to use real chain (was mock chain) #3342

Merged
merged 2 commits into from
Jun 7, 2020

Conversation

antiochp
Copy link
Member

@antiochp antiochp commented Jun 5, 2020

This PR reworks the existing pool tests to setup and use a real chain instance.
We were mocking the chain out previously.
This was introducing some inconsistencies in the chain block and tx validation rules.

This required reworking the block_weight tests to use AutomatedTesting chain type rather than Mainnet.

Changes in this PR are limited in scope to test code only.
The only exception to this is an increase to the global::TESTING_MAX_BLOCK_WEIGHT to allow the block_weight tests to be run against AutomatedTesting.

This is refactoring required to test the NRD lock height rules (separate PR) so we can effectively test the rules without needing to mock them up in chain.

@antiochp antiochp added this to the 4.0.0 milestone Jun 5, 2020
@antiochp antiochp changed the title Rework pool tests to use real chain (was mock chain) to better reflec… Rework pool tests to use real chain (was mock chain) Jun 5, 2020
@quentinlesceller quentinlesceller self-requested a review June 5, 2020 19:45
@antiochp antiochp self-assigned this Jun 7, 2020
@antiochp
Copy link
Member Author

antiochp commented Jun 7, 2020

Going to merge this now so it does not block #3302.
Treating this as relatively low risk as it is limited in scope to test code with no functional changes.

@quentinlesceller please continue to review and we can address any feedback separately.

@antiochp antiochp merged commit c54568e into mimblewimble:master Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant